

<include file="Public/head"/><body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="cf">
                            <form class="form-inline" action="" method="get">      
                                <select name="domain" class="form-control">
                                    <option value="0">--公众号--</option>
                                    <foreach name="platform_list" item="vo">
                                    <option value="{$vo.domain}" <if condition="$domian eq $vo[domain]">selected</if>>--{$vo.platform_name}--</option>
                                    </foreach>
                                </select>
                                          
                                <label class="inline">用户名称</label>
                                <input type="text" name="nickname" value="{$search_name}" class="form-control">
								

                                <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 搜索
                                </button>
                            </form>
                            <form class="form-inline" action="{:U('User/send_info')}" method="post" target="_blank">
	                            <input type="hidden" name="user_ids" id="user_ids" value="" />
	                            <label class="inline">标题</label>
                                <input type="text" name="title" value="" class="form-control">
								<label class="inline">描述</label>
                                <input type="text" name="desc" value="" class="form-control">
                                <label class="inline">图片地址</label>
                                <input type="text" name="img" value="" class="form-control">       
                                <label class="inline">连接地址</label>
                                <input type="text" name="url" value="" class="form-control">
	                            <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 推送图文信息
                                </button>
                            </form>
                            <form class="form-inline" action="{:U('User/send_info')}" method="post" target="_blank">
	                            <input type="hidden" name="user_ids" id="user_ids1" value="" />
	                            <label class="inline">标题</label>
                                <input type="text" name="title" value="亲您或许会喜欢" class="form-control">
								<label class="inline">描述</label>
                                <input type="text" name="remark" value="欢迎品鉴" class="form-control">
                                <label class="inline">小说信息</label>
                                <input type="text" name="novel_info" value="《透视村医》500章更新" class="form-control">       
                                <label class="inline">连接地址</label>
                                <input type="text" name="novel_url" value="http://www.baidu.com/" class="form-control">
                                <label class="inline">更新日期</label>
                                <input type="text" name="update_date" value="2017年12月31日" class="form-control">
	                            <button type="submit" class="btn btn-purple btn-sm">
                                    <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 推送模板信息
                                </button>
                            </form>                            
                        </div>
                        <div class="space-4"></div>
                        <form id="form" method="post" action="{:U('del')}">
                            <table class="table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                    <th>用户昵称</th>
                                    <th>open_id</th>
                                    <th>最后看书历史</th>
                                    <th>注册时间</th>
                                    <th>哪个公众号</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="list" id="val">
                                    <tr>
                                        <td class="center"><input class="aids" type="checkbox" name="user_id[]" value="{$val['user_id']}"></td>
                                        <td>{$val['nickname']}</td>
                                        <td>{$val['open_id']}</td>
                                        <td>{$val['history']}</td>
                                        <td>{$val['addtime']}</td>
                                        <td>{$val['platform_name']}</td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </form>
                        {$page}
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".check-all").click(function () {
            $(".aids").prop("checked", this.checked);
            getuserids();
        });
        $(".aids").click(function () {
        	getuserids();
        });
        
        function getuserids(){
            var option = $(".ids");
            var user_ids = "";
            $(".aids").each(function(){
            	if(this.checked){
            		user_ids += this.value+",";
            	}
			});
            if(user_ids.length > 0)
            	user_ids = user_ids.substring(0, user_ids.length - 1);
            $("#user_ids").val(user_ids);
            $("#user_ids1").val(user_ids); 
        }
    })
</script>
</body>
</html>
